package com.test.framework.beans.factory;

/**
 * @ClassName: BeanFactory
 * @description: 定义IOC容器的统一规范即获取bean对象
 * @author: Mr du
 * @create: 2024-04-09 22:29
 */
public interface BeanFactory {

    //根据bean对象的名称获取bean对象
    Object getBean(String name) throws Exception;

    //根据bean对象的名称获取bean对象，并进行类型转换
    <T> T getBean(String name, Class<? extends T> clazz) throws Exception;
}
